<?php
class Model_Category
{
	private $_id;
	private $_name;
	private $_description;
	
	public function getId()
	{
		return $this->_id;
	}
	public function getName()
	{
		return $this-> _name;
	}
	public function getDescription()
	{
		return $this->_description;
	}
	public function setId($value)
	{
		$this->_id=$value;
		return $this;
	}
	public function setName($value)
	{
		$this->_name=$value;
		return $this;
	}
	public function setDescription($value)
	{
		$this->_description=$value;
		return $this;
	}
	
	public function getTotalDishes(){
		$dishMapper=new Model_DishMapper();
		$value=$dishMapper->getTotalDishesByCategory($this->_id);
		return $value;
	}
}